<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%-- <c:set var="menus" value="${menulist}" scope="session"></c:set> --%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	   <!-- The styles -->
    <link href="${pageContext.request.contextPath}/statics/css/bootstrap-cerulean.min.css" rel="stylesheet">

    <link href="${pageContext.request.contextPath}/statics/css/charisma-app.css" rel="stylesheet">
    <link href='${pageContext.request.contextPath}/statics/css/fullcalendar.css' rel='stylesheet'>
    <link href='${pageContext.request.contextPath}/statics/css/fullcalendar.print.css' rel='stylesheet' media='print'>
    <link href='${pageContext.request.contextPath}/statics/css/chosen.min.css' rel='stylesheet'>
    <link href='${pageContext.request.contextPath}/statics/css/colorbox.css' rel='stylesheet'>
    <link href='${pageContext.request.contextPath}/statics/css/responsive-tables.css' rel='stylesheet'>
    <link href='${pageContext.request.contextPath}/statics/css/bootstrap-tour.min.css' rel='stylesheet'>
    <link href='${pageContext.request.contextPath}/statics/css/jquery.noty.css' rel='stylesheet'>
    <link href='${pageContext.request.contextPath}/statics/css/noty_theme_default.css' rel='stylesheet'>
    <link href='${pageContext.request.contextPath}/statics/css/elfinder.min.css' rel='stylesheet'>
    <link href='${pageContext.request.contextPath}/statics/css/elfinder.theme.css' rel='stylesheet'>
    <link href='${pageContext.request.contextPath}/statics/css/jquery.iphone.toggle.css' rel='stylesheet'>
    <link href='${pageContext.request.contextPath}/statics/css/uploadify.css' rel='stylesheet'>
    <link href='${pageContext.request.contextPath}/statics/css/animate.min.css' rel='stylesheet'>
	
	<link href='${pageContext.request.contextPath}/statics/css/font-awesome.min.css' rel='stylesheet'>
	
	<link href='${pageContext.request.contextPath}/statics/local/css/index.css' rel='stylesheet'>
	<link href='${pageContext.request.contextPath}/statics/local/css/goodslist.css' rel='stylesheet'>
	<link href='${pageContext.request.contextPath}/statics/local/css/store.css' rel='stylesheet'>
	<link rel="shortcut icon" href="${pageContext.request.contextPath}/statics/img/favicon.ico">
	
	<title>WMS 欢迎您</title>
	<!-- <script type="text/javascript">
		var jsonList = '${menulist}';
		var url = "${pageContext.request.contextPath}";
	</script> -->
</head>
<body>

<!-- topbar starts -->
<div class="navbar navbar-default" role="navigation">

	<div class="navbar-inner">
		<button type="button" class="navbar-toggle pull-left animated flip">
			<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span>
			<span class="icon-bar"></span> <span class="icon-bar"></span>
		</button>
		<a class="navbar-brand" href="${pageContext.request.contextPath}/index.html"> <img alt=""
			src="${pageContext.request.contextPath}/statics/img/logo20.png"
			class="hidden-xs" /> <span>WMS</span></a>

		<!-- user dropdown starts -->
		<div class="btn-group pull-right">
			<button class="btn btn-default dropdown-toggle"
				data-toggle="dropdown">
				<i class="glyphicon glyphicon-user"></i><span
					class="hidden-sm hidden-xs">欢迎您, ${operator.loginCode}</span> <span
					class="caret"></span>
			</button>
			<ul class="dropdown-menu">
				<li><a href="#">个人信息</a></li>
				<li class="divider"></li>
				<li><a href="${pageContext.request.contextPath}/loginout.html">退出</a></li>
			</ul>
		</div>
		<!-- user dropdown ends-->

	</div>
</div>
<!-- topbar ends -->

<div class="ch-container">
	<div class="row">

		<!-- left menu starts -->
		<div class="col-sm-2 col-lg-2">
			<div class="sidebar-nav">
				<div class="nav-canvas">
					<div class="nav-sm nav nav-stacked"></div>
					<ul class="nav nav-pills nav-stacked main-menu" id="menulist">
					</ul>
					 <ul class="nav nav-pills nav-stacked main-menu">
						<c:if test="${menulist != null && fn:length(menulist) != 0}">
						<c:forEach items="${menulist}" var="main">
							<li class="accordion">
							  	<a href="#"><i class="fa ${main.mainFun.icon}"></i><span>&nbsp;&nbsp;${main.mainFun.funName}</span></a>
								<ul class="nav  nav-stacked">
									<c:forEach items="${main.sonFun}" var="son">
										<li>
											<a href="${pageContext.request.contextPath}${son.funUrl}">
												<i class="fa ${son.icon}"></i>
												<span>${son.funName}</span>
											</a>
										</li>
									</c:forEach>
								</ul>
							</li>
						</c:forEach>
						</c:if>
					</ul>
				</div>
			</div>
		</div>
		<!--/span-->
		<!-- left menu ends -->

